import axios from 'axios'
import { getStorage } from '@/utils/storage.js'

const request = axios.create({
  baseURL: 'http://liufusong.top:8080'
})

request.interceptors.request.use(config => {
  if (getStorage('user')) {
    config.headers.Authorization = getStorage('user').token
  }
  return config
})
export default request

